/*
 * @Author: guo-chengjiang 1029833238@qq.com
 * @Date: 2025-03-14 09:32:29
 * @LastEditors: guo-chengjiang 1029833238@qq.com
 * @LastEditTime: 2025-03-22 14:57:29
 * @FilePath: \vue_demo\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'
import WorkView from '../views/WorkView.vue';
import TwoView from '@/views/TwoView.vue';
import WeChat from '@/views/WeChat.vue';
import LoginView from '@/views/LoginView.vue';

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: LoginView
  },
  {
    path: '/two',
    name: 'Two',
    component: TwoView // 更新组件名称
  },
  {
    path: '/wechat',
    name: 'WeChat',
    component: WeChat // 更新组件名称
  },
  {
    path: '/work',
    name: 'Work',
    component: WorkView // 更新组件名称
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
